#ifndef SRCOMMANDLIST_H
#define SRCOMMANDLIST_H

#include <QList>
#include <QObject>
#include "SRCommand.h"

class SRCommandList
{

public:
	SRCommandList();
	SRCommandList(SRCommand c);
	SRCommandList(QList<SRCommand> cl);
	SRCommandList(QString s);

	QString toString();
	QList<SRCommand> asList();
	static bool isCommandList(QString s);

	// QList delegates
	int size();
	SRCommand at(int i);
	void append(SRCommand c);
	void append(SRCommandList cl);


private:
	QList<SRCommand> commandList;
};

#endif // SRCOMMANDLIST_H
